<ion-view view-title="选择计划">
  <ion-content scroll-watch>
    <ion-list ng-class="list" ng-repeat="group in groups">
        <ion-item class="item-stable" ng-click="toggleGroup(group)" ng-class="{active: isGroupShown(group)}">
          <i class="icon" ng-class="isGroupShown(group) ? 'ion-minus' : 'ion-plus'"></i>
          &nbsp; Group
          {{group.name}}
        </ion-item>
        <!-- <ion-item class="item item-accordion item-radio" ng-repeat="item in group.items" ng-show="isGroupShown(group)">
          <label class="item item-radio">
            <input type="radio" name="group" value="python">
            <div class="item-content">
              Python
            </div>
            <i class="radio-icon ion-checkmark"></i>
          </label>
        </ion-item> -->
        <ion-radio class="item item-radio" ng-repeat="item in group.items"
        ng-value="item.value" ng-model="task.plan" ng-show="isGroupShown(group)">
          {{ item.text }}
        </ion-radio>
    </ion-list>
  </ion-content>
</ion-view>
